<template>
    <div style="background-color:aquamarine">
        <h1>子组件</h1>
        <h3>父传子：{{message}}</h3>
        <!-- <br> -->
        <button @click="$emit('increaseBy', 1)">子组件 发送</button>
    </div>
</template>

<script>
export default {
    // name: 'child',
    props: ['message'],
    methods:{
        submit(){
            this.$emit('submit')
        }
    }
}
</script>